package com.kgc.sbt.mapper;

import com.kgc.sbt.domain.Vip;
import com.kgc.sbt.domain.VipExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface VipMapper {
    long countByExample(VipExample example);

    int deleteByExample(VipExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Vip record);

    boolean insertSelective(Vip record);

    List<Vip> selectByExample(VipExample example);

    Vip selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Vip record, @Param("example") VipExample example);

    int updateByExample(@Param("record") Vip record, @Param("example") VipExample example);

    int updateByPrimaryKeySelective(Vip record);

    int updateByPrimaryKey(Vip record);

    Vip selectByUserId(Integer userId);

    boolean updateVipByUserId(Integer userId);

    Vip selectVipByUserId(Integer userId);

    Integer selectScoreByUserId(Integer userId);

    boolean addVipTenDaysByUserId(Integer userId);

    void updateVipToCommonByUserId(Integer userId);

}